package com.aiguigu.admin.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

//自定义异常
@ResponseStatus(value = HttpStatus.FORBIDDEN,reason = "用户数量太多")  //返回状态码信息
public class UserTooManyException extends RuntimeException{

    public  UserTooManyException(){}
    public UserTooManyException(String message){
        super(message);
    }


}
